sql tricky questions

join shbcf.ru